
package ${basePackage}.${subPackage}.service;


<?py if extend != "":?>
//此处导入本类的父类

<?py  properties = properties + models[extend]["properties"] ?>

<?py  if extend not in baseDataTypes: ?>

<?py    #print extend ?>

import ${basePackage}.${models[extend]["subPackage"]}.entity.${upperFirst(extend)};

<?py  #endif?>


<?py #endif?>

//此处导入本类引用的类
<?py for property in properties: ?>
<?py  if property["dataType"] not in baseDataTypes: ?>
<?py    datatype =  property["dataType"]?>
<?py    #print datatype ?>

import ${basePackage}.${models[datatype]["subPackage"]}.entity.${upperFirst(datatype)};

<?py  elif property["dataType"] == "List":?>
<?py    elementType =  property["elementType"]?>
import ${basePackage}.${models[elementType]["subPackage"]}.entity.${upperFirst(elementType)};


<?py  #endif?>
<?py #endfor ?>

import ${basePackage}.${subPackage}.entity.${upperFirst(name)};

import java.util.List;
import java.util.Map;
import java.util.Set;
import com.bonc.common.bean.*;

/**
 * ${upperFirst(name)}的Service接口
 * @author  自动生成
 */
public interface  ${upperFirst(name)}Service {
    
    public void delete(Long id);

    public ${upperFirst(name)} read(Long id);

    public void update(${upperFirst(name)} ${name});

    public ${upperFirst(name)} create(${upperFirst(name)} ${name});
    
    public List<${upperFirst(name)}>  listAll();
  
    public Map  findByCondition(${upperFirst(name)} ${name},PageContent page);
    
}
